﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using HitachiApp.Model.Manage;
using HitachiApp.Model.Projects;

namespace HitachiApp.View.Manage
{
    public partial class ProjectBrowser : UserControl
    {
        public ProjectBrowser()
        {
            InitializeComponent();
        }

        private void project_tree_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs<object> e)
        {
            TreeView tv = sender as TreeView;
            ProjectBrowserModel model = DataContext as ProjectBrowserModel;
            model.CurrentSelected = tv.SelectedItem as ProjectManageItem;
        }
    }
}
